# PLM CORE FORMATTING PROTOCOL

## TOKEN DEFINITIONS
1. BOLD: *text* -> font-extrabold (900)
2. STABLE: {green:text} -> Emerald-500 4px underline + bold
3. WARNING: {yellow:text} -> Amber-400 4px underline + bold
4. CRITICAL: {red:text} -> Rose-500 4px underline + bold

## IMPLEMENTATION RULES
- All JSON content fields ("content", "title", "options.text") must be passed through <FormattedText />.
- Use atomic locks on database writes to ensure formatting tokens are not corrupted during partial updates.
- Sanitization: FormattedText regex executes before any HTML rendering to prevent XSS while allowing specific decoration tokens.
- Directionality: Component defaults to 'auto' to support mixed LTR/RTL within the same message bubble.